package com.shitou.shitoumember.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;
import com.shitou.shitoucommons.utils.PageUtils;
import com.shitou.shitoucommons.utils.Query;

import com.shitou.shitoumember.dao.MemberRoleDao;
import com.shitou.shitoumember.entity.MemberRoleEntity;
import com.shitou.shitoumember.service.MemberRoleService;

@Transactional
@Service("memberRoleService")
public class MemberRoleServiceImpl extends ServiceImpl<MemberRoleDao, MemberRoleEntity> implements MemberRoleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MemberRoleEntity> page = this.page(
                new Query<MemberRoleEntity>().getPage(params),
                new QueryWrapper<MemberRoleEntity>()
        );

        return new PageUtils(page);
    }

}
